import request from '@/utils/request'

// 首页今日销售统计
export function trafficDaily(query) {
  return request({
    url: '/jihuo/report/trafficDaily',
    method: 'get',
    params: query
  })
}

// 销售统计
export function trafficWeekly(query) {
  return request({
    url: '/jihuo/report/trafficWeekly',
    method: 'get',
    params: query
  })
}


export function trafficMonthly(query) {
  return request({
    url: '/jihuo/report/trafficMonthly',
    method: 'get',
    params: query
  })
}

export function getTodayTraffic(query) {
  return request({
    url: '/jihuo/report/getTodayTraffic',
    method: 'get',
    params: query
  })
}

export function getThisWeekTraffic(query) {
  return request({
    url: '/jihuo/report/getThisWeekTraffic',
    method: 'get',
    params: query
  })
}

export function getThisMonthTraffic(query) {
  return request({
    url: '/jihuo/report/getThisMonthTraffic',
    method: 'get',
    params: query
  })
}

export function getTodaySales(query) {
  return request({
    url: '/jihuo/report/getTodaySales',
    method: 'get',
    params: query
  })
}

export function getThisWeekSales(query) {
  return request({
    url: '/jihuo/report/getThisWeekSales',
    method: 'get',
    params: query
  })
}

export function getThisMonthSales(query) {
  return request({
    url: '/jihuo/report/getThisMonthSales',
    method: 'get',
    params: query
  })
}
